package ebusiness.ebusiness.Dao.TorlleyDao;

import ebusiness.ebusiness.Entity.Good;
import ebusiness.ebusiness.Entity.Torlley;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

public interface TorlleyInter {
    void addATemplory(@Param("userid")int customer_id,@Param("shoppingid")int shopping_id,@Param("goodid")int good_id,@Param("goodnum")int good_num,@Param("status")int status,@Param("nunorderid")int nun_order_form_id);
    void modifyTemplory(@Param("userid")int customer_id,@Param("shoppingid")int shopping_id,@Param("goodid")int good_id,@Param("goodnum")int good_num,@Param("status")int status,@Param("nunorderid")int nun_order_form_id);
    void deleteTemplory(@Param("id") int id, @Param("uid") int uid);
    List<Torlley> getTemplories(@Param("uid") int uid);
    void buildorder(@Param("createime")String createtime,@Param("paytime")String pay,
                   @Param("status")String status,@Param("total")double total,@Param("broid")int bid,@Param("bid")int broid,
                   @Param("uid")int uid,@Param("payway")int payway,@Param("aid")int aid);
    void buildDetailOrder(@Param("date")String createtime,@Param("num")int n,
                         @Param("price")double p,@Param("total")double total,@Param("gid")int gid,
                         @Param("oid")int oid);

    List<Integer> getAllOrderID();
    List<Integer> getAllDetailID();
    int getorderID(@Param("date")String date,@Param("uid")int id);
}
